
#include <iostream>
#include "reciever.h"
#include "command.h"

ConcreteCommand::ConcreteCommand(Reciever *recv)
{
    recv_ = recv;
}

ConcreteCommand:: ~ConcreteCommand()
{
    delete recv_;
}

void ConcreteCommand::Execute()
{
    std::cout << "command execute." << std::endl;
    recv_->Action();
}


